package com.jk.api;

import com.jk.po.OrderPO;
import com.jk.vo.ResultInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/***
 * @ClassName: OrderApi
 * @Description:TODO
 * @Auther: 景晨璇
 * @Date: 2021/6/30 14:58
 * @version : V1.0
 */
@RequestMapping("OrderService")
@ResponseBody
public interface OrderApi {
    /**
    * @Author 景晨璇
    * @method  queryOrder
    * @description 查看订单
    * @Date 16:55 2021/6/30
    * @Param  * @param
    * @return java.util.List<com.jk.po.OrderPO>
    **/
    @GetMapping("queryOrder")
    List<OrderPO> queryOrder();
    /**
    * @Author 景晨璇
    * @method  queryOrderById
    * @description 查看订单详情
    * @Date 17:00 2021/6/30
    * @Param  * @param id
    * @return com.jk.vo.ResultInfo
    **/
    @GetMapping("queryOrderById/{id}")
    ResultInfo queryOrderById(@PathVariable("id") String id);
    /**
     *
     *
     * @author 赵磊荣
     * @date 2021/7/8 10:48
     * @return redis未付款订单
     */
    @GetMapping("queryOrderRedis")
    List<OrderPO> queryOrderRedis();

    /**
    * @Author  王宇超
    * @method  queryOrderEnd
    * @description 查询已付款清单
    * @Date 17:05 2021/7/8
    * @Param  * @param
    * @return java.util.List<com.jk.po.OrderPO>
    **/
    @GetMapping("queryOrderEnd")
    List<OrderPO> queryOrderEnd();

    /**
    * @Author 景晨璇
    * @method
    * @description 描述一下方法的作用
    * @Date 20:45 2021/7/8
    * @Param  * @param null
    * @return
    **/
    @GetMapping("orderRedisMogdb")
    void orderRedisMogdb();
}
